﻿using System.Collections.Generic;

namespace Gamey.NES
{
    public class NesHeaderReader : RomReader
    {
        static readonly IDictionary<string, FieldReader> FieldReaders = new Dictionary<string, FieldReader>
        {
            { "Name", new CapitalizedFieldReader(0x1FFF0, 16, new char[] { '\0', '?' }) }
        };

        protected override string RomFileExtension
        {
            get { return ".nes"; }
        }

        protected override IDictionary<string, FieldReader> GetFieldReaders()
        {
            return FieldReaders;
        }
    }
}
